﻿@{
    ViewBag.Title = "Index";
}
@model IEnumerable<SelfInfo.Models.ITEM>
<h2>Index ITEM</h2>
<p>
 @Html.ActionLink("Create One", "CreateItem")
</p>
<table>
   <thead>
      <tr>
         <td>ID</td>
         <td>TYPE</td>
         <td>NAME</td>
      </tr>
   </thead>
   <tbody>
    @foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ID)
        </td>
         <td>
            @Html.DisplayFor(modelItem => item.TYPE)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NAME)
        </td>
       
        <td>
            @Html.ActionLink("Delete", "Delete", new { id = item.ID }) 
        </td>
    </tr>
    }
   </tbody>

</table>
